package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingPlanDto;
import com.zzyl.dto.NursingProjectPlanDto;
import com.zzyl.entity.NursingPlan;
import com.zzyl.entity.NursingProjectPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
     List<NursingPlan> findAll();

     void add(NursingPlan nursingPlan);

     Page<NursingPlan> selectPage(String name, Integer status);

     NursingPlanVo findById(Long id);

     NursingPlanDto update(NursingPlan nursingPlan);

     void deleteById(Long id);

     void status(@Param("id") Long id, @Param("status") Integer status);

     //批量插入项目计划集合
     void adds(List<NursingProjectPlan> nursingProjectPlans);
}
